<!DOCTYPE html>
<html>
<head>
    <title>采购单头表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("sys:tblpoheader:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("sys:tblpoheader:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:tblpoheader:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">公司id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tblPoHeader.companyId" placeholder="公司id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">采购订单编号@PO<yyyymmdd>+<4为流水></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tblPoHeader.poNumber" placeholder="采购订单编号@PO<yyyymmdd>+<4为流水>"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">采购申请批ID@和tbl_pr_batch batch_id关联，从采购申请过来的采购订单是有采购申请单编号的，如果手动创建的是没有的</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tblPoHeader.sourcePrBatchId" placeholder="采购申请批ID@和tbl_pr_batch batch_id关联，从采购申请过来的采购订单是有采购申请单编号的，如果手动创建的是没有的"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">供应商id@和tbl_vendor 的vendor_id 关联</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tblPoHeader.vendorId" placeholder="供应商id@和tbl_vendor 的vendor_id 关联"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">采购类型@是表sys_dict 中的ID，</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tblPoHeader.transactionTypeId" placeholder="采购类型@是表sys_dict 中的ID，"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">需求日期</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tblPoHeader.requireDate" placeholder="需求日期"/>
                        </div>
                    </div>
											                    <div class="form-group" style="display: none">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tblPoHeader.attribute1" placeholder="备注"/>
                        </div>
                    </div>
											                    <div class="form-group" style="display: none">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tblPoHeader.attribute2" placeholder="备注"/>
                        </div>
                    </div>
											                    <div class="form-group" style="display: none">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tblPoHeader.attribute3" placeholder="备注"/>
                        </div>
                    </div>
											                    <div class="form-group" style="display: none">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tblPoHeader.attribute4" placeholder="备注"/>
                        </div>
                    </div>
											                    <div class="form-group" style="display: none">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tblPoHeader.attribute5" placeholder="备注"/>
                        </div>
                    </div>
											                    <div class="form-group" style="display: none">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tblPoHeader.createTime" placeholder=""/>
                        </div>
                    </div>
											                    <div class="form-group" style="display: none">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tblPoHeader.createBy" placeholder=""/>
                        </div>
                    </div>
											                    <div class="form-group" style="display: none">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tblPoHeader.updateTime" placeholder=""/>
                        </div>
                    </div>
											                    <div class="form-group" style="display: none">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="tblPoHeader.updateBy" placeholder=""/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/tblpoheader.js?_${.now?long}"></script>
</body>
</html>